package mobi.zeedev.flyingsaucer.common.WebQueryModule.interfaces;

import mobi.zeedev.flyingsaucer.common.WebQueryModule.impl.HttpException;
import mobi.zeedev.flyingsaucer.common.WebQueryModule.impl.Result;
import org.apache.http.client.CookieStore;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.cookie.Cookie;

import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.util.List;
import java.util.Map;

/**
 * User: James
 * Date: 1/4/11
 * Time: 3:45 AM
 */
public interface IBeerWebQuery {

    void injectCookies(List<Cookie> cookieList);

    void resetCookies();

    Result getUrlResultHttpPost(String url, UrlEncodedFormEntity postParamsIn, CookieStore csIn) throws HttpException, IOException;

    Result getUrlResultHttpGet(String url) throws HttpException, IOException;

    Result getUrlResultHttpGet(URL url) throws HttpException, IOException;

    UrlEncodedFormEntity generatePostParams(Map<String, String> params) throws UnsupportedEncodingException;


}
